package commerce.test;

import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import commerce.business.CommerceManage;
import commerce.hibernate.po.*;

public class commercemanagetest {

	CommerceManage bus=new CommerceManage(1);
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Test
	public void testCommerceManage() {
		fail("Not yet implemented");
	}

	@Test
	public void testSaveCategory() {
		ProductCategory category=new ProductCategory();
		category.setCategoryName("cate1");
		category.setShopId(2);
		assertTrue("save cate failed",bus.saveCategory(category));
	}

	@Test
	public void testDeleteCategory() {
		ProductCategory category=bus.getCategoryById(2);
		assertTrue("delete category failed",bus.deleteCategory(category));
	}

	@Test
	public void testGetCategoryById() {
		fail("Not yet implemented");
	}

	@Test
	public void testDeleteCategoryById() {
		fail("Not yet implemented");
	}

	@Test
	public void testDeleteCategoryBatch() {
		fail("Not yet implemented");
	}

}
